package learning.designpatterns.builder.vehiclebuilder;

import learning.designpatterns.builder.vehicle.Vehicle;
import learning.designpatterns.builder.vehicle.VehicleType;

public class MotorcycleBuilder extends VehicleBuilder {

    public MotorcycleBuilder() {
        vehicle = new Vehicle(VehicleType.MOTORCYCLE);
    }

    @Override
    public void buildEngine() {
        vehicle.addPart("engine", "motorcycle engine");

    }

    @Override
    public void buildWheels() {
        vehicle.addPart("wheels", "motorcycle wheels");

    }
}
